package com.lgz.dbcourse.gui;

import javax.swing.*;
import java.awt.*;

/**
 * @Author: LGZ
 * @Date: 2021/4/15 20:32
 * @Description:
 */
public class MyLabel extends JLabel {
    public MyLabel(String text) {
        super(text);
        this.setHorizontalAlignment(JLabel.CENTER);
    }
    public MyLabel(String text, Color color) {
        this(text);
        this.setBorder(BorderFactory.createLineBorder(color));
    }
}
